package study.translation.parser;

public class FilePosition
{
    private int line;

    private int character;

    public FilePosition( int line, int character )
    {
        this.line = line;
        this.character = character;
    }

    public int getLine()
    {
        return line;
    }

    public int getCharacter()
    {
        return character;
    }

    public boolean equals( Object obj )
    {
        if( obj instanceof FilePosition )
        {
            FilePosition pos = ( FilePosition )obj;
            return ( pos.getLine() == getLine() ) && ( pos.getCharacter() == getCharacter() );
        }
        return false;
    }
}
